package com.rssreader.shared.model;

import java.util.Date;

import com.extjs.gxt.ui.client.data.BaseModel;

@SuppressWarnings("serial")
public class Item extends BaseModel { // 繼承BaseModel，所以getter和setter方法的寫法不同
    public Item() {
    }

    public void setCategory(String category) {
	set("category", category);
    }

    public void setDescription(String description) {
	set("description", description);
    }

    public void setLink(String link) {
	set("link", link);
    }

    public void setTitle(String title) {
	set("title", title);
    }

    public void setPubDate(Date pubDate) {
	set("pubDate", pubDate);
    }

    public void setThumbnailUrl(String thumbnailUrl) {
	set("thumbnailUrl", thumbnailUrl);
    }

    public String getCategory() {
	return get("category");
    }

    public String getDescription() {
	return get("description");
    }

    public String getLink() {
	return get("link");
    }

    public String getTitle() {
	return get("title");
    }

    public Date getPubDate() {
	return get("pubDate");
    }

    public String getThumbnailUrl() {
	return get("thumbnailUrl");
    }
}
